package com.thkj.modules.user.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.thkj.modules.user.entity.TblCameraRele;
import com.thkj.modules.user.service.TblMoniConfigService;

import dp.service.BaseService;

@Service("moniConfigService")
public class TblMoniConfigServiceImpl extends BaseService implements TblMoniConfigService {

	@Override
	public void insertCameraRele(TblCameraRele cameraRele) {
		dao.insert("com.thkj.mapper.TblCameraRele.insert", cameraRele);
	}

	@Override
	public Integer updateTblCameraRele(TblCameraRele cameraRele) {
		return dao.update("com.thkj.mapper.TblCameraRele.update", cameraRele);
	}

	@Override
	public Integer delete(String id) {
		return dao.delete("com.thkj.mapper.TblCameraRele.delete", id);
	}

	@Override
	public TblCameraRele getById(String id) {
		return dao.queryForObject("com.thkj.mapper.TblCameraRele.getById", id, TblCameraRele.class);
	}

	@Override
	public List<TblCameraRele> getByIndexCode(String id) {
		return dao.queryForList("com.thkj.mapper.TblCameraRele.getByIndexCode", id, TblCameraRele.class);
	}

	@Override
	public TblCameraRele getByIndividualId(String individualId) {
		return dao.queryForObject("com.thkj.mapper.TblCameraRele.getByIndividualId", individualId, TblCameraRele.class);
	}

}